using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI.WebControls;
using btnet;

/// <summary>
/// Summary description for priorities
/// </summary>
public partial class priorities : System.Web.UI.Page
{
    protected DataSet ds;
    protected Security security;

    void Page_Load(Object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            String footer_label = null;
            if (Application["custom_footer"] != null)
            {
                footer_label = (String)Application["custom_footer"];
            }
            custom_footer_label.Text = footer_label;
        }

	    Util.do_not_cache(Response);
	
	    security = new Security();
	    security.check_security( HttpContext.Current, Security.MUST_BE_ADMIN);

	    titl.InnerText = Util.get_setting("AppTitle","BugTracker.NET") + " - "
		    + "priorities";

	    ds = btnet.DbUtil.get_dataset (
		    @"select pr_id [id],
		    pr_name [description],
		    pr_sort_seq [sort seq],
		    '<div style=''background:' + pr_background_color + ';''>' + pr_background_color + '</div>' [background<br>color],
		    pr_style [css<br>class],
		    case when pr_default = 1 then 'Y' else 'N' end [default],
		    pr_id [hidden] from priorities");

    }
}